package cn.kk;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 启动类
 * @Author: kk
 * @Date: 2023/1/28  16:33
 * @Version 1.0
 */
@EnableTransactionManagement
@ServletComponentScan(basePackages = "cn.kk.filter")
@EnableFeignClients(basePackages = "cn.kk.api.feign")
@EnableDiscoveryClient
@EnableCaching
@MapperScan("cn.kk.mapper")
@SpringBootApplication
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
